/*
* 命名空间: Authority.Model
*
* 功 能： SysPost实体类
*
* 类 名： SysPostEntity
*
* Version   变更日期            负责人     变更内容
* ─────────────────────────────────────────────────
* V1.0.1    2019/09/27 14:26:13 罗维     创建
*
* Copyright (c) 2019 Lir Corporation. All rights reserved.
*/

namespace Authority.Model
{
    using System;
    using Tool.Model;

    /// <summary>
    /// 岗位表信息
    /// </summary>
    [Serializable]
    [DBTableInfo(TableName = "SysPost")]
    public class SysPostEntity
    {

        /// <summary>
        /// 唯一编码
        /// </summary>
        [DBFieldInfo(ByteLength = 32, DataLength = 32, DecimalDigits = 0, ColumnName = "gCode", Required = true, DefaultValue = "", IsPrimarykey = true)]
        public string gCode
        {
            get; set;
        }

        /// <summary>
        /// 组织机构编码
        /// </summary>
        [DBFieldInfo(ByteLength = 8, DataLength = 20, DecimalDigits = 0, ColumnName = "iOrganizationCode", Required = true, DefaultValue = "", IsPrimarykey = false)]
        public long iOrganizationCode
        {
            get; set;
        }

        /// <summary>
        /// 岗位名称
        /// </summary>
        [DBFieldInfo(ByteLength = 50, DataLength = 25, DecimalDigits = 0, ColumnName = "sName", Required = true, DefaultValue = "", IsPrimarykey = false)]
        public string sName
        {
            get; set;
        }

        /// <summary>
        /// 简码
        /// </summary>
        [DBFieldInfo(ByteLength = 50, DataLength = 25, DecimalDigits = 0, ColumnName = "sBrevityCode", Required = true, DefaultValue = "", IsPrimarykey = false)]
        public string sBrevityCode
        {
            get; set;
        }



        /// <summary>
        /// 排序
        /// </summary>
        [DBFieldInfo(ByteLength = 8, DataLength = 53, DecimalDigits = 0, ColumnName = "iSort", Required = true, DefaultValue = "((0))", IsPrimarykey = false)]
        public double iSort
        {
            get; set;
        }

        /// <summary>
        /// 创建时间
        /// </summary>
        [DBFieldInfo(ByteLength = 8, DataLength = 23, DecimalDigits = 3, ColumnName = "dCreateTime", Required = false, DefaultValue = "(getdate())", IsPrimarykey = false)]
        public DateTime? dCreateTime
        {
            get; set;
        }

        /// <summary>
        /// 备注
        /// </summary>
        [DBFieldInfo(ByteLength = 400, DataLength = 200, DecimalDigits = 0, ColumnName = "sContent", Required = false, DefaultValue = "", IsPrimarykey = false)]
        public string sContent
        {
            get; set;
        }

        /// <summary>
        /// 逻辑删除
        /// </summary>
        [DBFieldInfo(ByteLength = 1, DataLength = 1, DecimalDigits = 0, ColumnName = "bIsDeleted", Required = true, DefaultValue = "((0))", IsPrimarykey = false)]
        public bool bIsDeleted
        {
            get; set;
        }
    }
}
